package books.ThinkingInJava.src.Chapter14;

import java.util.List;

public class ClassCasts {
    public static void main(String[] args) {
        Toy toy = new Iroman();
        Class<Iroman> iroman = Iroman.class;
        Iroman iro = iroman.cast(toy);
        iro = (Iroman) toy;
    }

    //Class<? extends Toy>> 代表接受所有继承自Toy的类型
    public List<Class<? extends Toy>> types() {
        return null;
    }
}
